/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Negocio;

/**
 *
 * @author THOMAS
 */


public class Telefone {

    public Telefone(int ddd, int telefone) {
        this.ddd = ddd;
        this.telefone = telefone;
    }

    
    private int ddd;
    private int telefone;

    public int getDdd() {
        return ddd;
    }

    public void setDdd(int ddd) {
        this.ddd = ddd;
    }

    public int getTelefone() {
        return telefone;
    }

    public void setTelefone(int telefone) {
        this.telefone = telefone;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Telefone other = (Telefone) obj;
        if (this.ddd != other.ddd) {
            return false;
        }
        if (this.telefone != other.telefone) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 29 * hash + this.ddd;
        hash = 29 * hash + this.telefone;
        return hash;
    }

    @Override
    public String toString() {
        return "Telefone{" + "ddd=" + ddd + ", telefone=" + telefone + '}';
    }
    
    
    
    
}
